﻿Interface IFIdentify
    ''' <summary>
    ''' 鼠标点击或框选查询，查询结果放入treeview和listview中，lblLocation记录选择区域的中心点
    ''' 使用时，需要在外部传入treeview,listview和lbllocation控件
    ''' 用法：
    ''' Private Sub AxMapControl1_OnMouseDown(ByVal sender As System.Object, ByVal e As ESRI.ArcGIS.MapControl.IMapControlEvents2_OnMouseDownEvent) Handles AxMapControl1.OnMouseDown
    '''    If m_toolSelect = "identify" Then
    '''        Dim pt As IPoint
    '''        pt = New Point
    '''        pt.X = e.mapX
    '''        pt.Y = e.mapY
    '''        frmIdentify.Show()
    '''        MapBrowse.IdentifyByShape(pt, frmIdentify.TreeView1, frmIdentify.ListView1, frmIdentify.lblLocation)
    '''        frmIdentify.TopMost = True
    '''        pt = Nothing
    '''    ElseIf m_toolSelect = "rectIdentify" Then
    '''        frmIdentify.Show()
    '''        MapBrowse.IdentifyByShape(AxMapControl1.TrackRectangle(), frmIdentify.TreeView1, frmIdentify.ListView1, frmIdentify.lblLocation)
    '''        frmIdentify.TopMost = True 
    '''    End If
    '''End Sub
    ''' </summary>
    ''' <param name="shape">选择的形状</param>
    ''' <param name="treeview">放查询结果的图层及对象结构</param>
    ''' <param name="lblLocation">选择区域的中心点</param>
    ''' <remarks></remarks>
    Sub IdentifyByShape(ByVal layers As Hashtable, ByVal shape As Object, ByVal treeview As TreeView, Optional ByVal lblLocation As Label = Nothing)

    ''' <summary>
    ''' 选中的对象树中选择对象，并在列表框中显示该对象的属性
    ''' 使用时需要在外部treeview控件中添加事件处理函数
    ''' 用法：
    ''' Private Sub TreeView1_NodeMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick
    '''    MapBrowse.IdentifySelected(ListView1, e.Node) 
    ''' End Sub
    ''' </summary>
    ''' <param name="listview">显示属性的列表框</param>
    ''' <param name="pNode">选中的树节点</param>
    ''' <remarks></remarks>
    Sub IdentifySelected(ByVal listview As ListView, ByVal pNode As TreeNode)
    ''' <remarks></remarks>
    Sub IdentifySelected2(ByVal listview As ListView, ByVal pNode As TreeNode)
End Interface

